package lesson3;

public class Vehicle {
    private double speed;
    private String type;

    public Vehicle(){

    }

    public Vehicle(double speed,String type){
        this.speed = speed;
        this.type = type;
        System.out.println("speed:"+speed);
        System.out.println("type:"+type);

    }

    public void move(){
        System.out.println("move");
    }

    public void setSpeed(double s){
        this.speed = s;
    }

    public void speedUp(double s){
        this.speed += s;
    }

    public void speedDown(double s){
        this.speed -= s;
    }

}
